<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>SGMF :: Login</title>
	<h:outputStylesheet library="css" name="style.css" />
</h:head>

<h:body>

	<div id="header">
		<ui:insert name="header">
			<ui:include src="header.xhtml" />
		</ui:insert>
	</div>
	<div style="clear: both;"></div>

	<div id="wrapper">
		<div id="login">
			<form id="form" action="j_spring_security_check" method="post">
				<p:panel>
					<p:panelGrid columns="2" styleClass="borderless">
						<p:outputLabel value="Usuário" for="j_username" />
						<p:inputText id="j_username" type="text" label="Usuário" />
						<p:outputLabel value="Senha" for="j_password" />
						<p:inputText id="j_password" type="password" label="Senha" />
						<h:commandButton id="salvar" value="Login" />
					</p:panelGrid>
				</p:panel>
			</form>
			<br />
			<center><h:outputText value="Usuário e/ou senha inválidos!" rendered="#{param.error}" /></center>
		</div>
	</div>

	<div id="footer">
		<ui:insert name="footer">
			<ui:include src="footer.xhtml" />
		</ui:insert>
	</div>

</h:body>

</html>
